Controlling the Preview
When Kanzi Studio loads a project, it shows in the Preview your project as if it was run as an application on a target device. You can control the Preview from the menu or use the shortcut keys.
| Shortcut key | Description |
|---|---|
| F5 | Start the Preview in paused mode. |
| F6 | Start playing the Preview. |
| F7 | Pause the Preview. |
| F8 | Exit the Preview. |
| F9 | Stop the Preview. |
| Ctrl F5 | Start the Preview in play mode. This is the default Preview setting when you open a Kanzi Studio project. To change this setting, go to > User Preferences > Advanced > Preview. |
| Ctrl F8 | Restart the Preview. |
Showing only the content of Page nodes and prefabs in the Preview
By default the Preview shows your entire Kanzi project as when it is run as an application on a target device. However, you can isolate parts of your application and view each as a separate item in the Preview. This means that you can work on the content of a Page node or a prefab without instantiating the prefab.
- To show only the content of a prefab in the Preview, in the Prefabs double-click that prefab.
Kanzi Studio opens the prefab in a new Preview tab and shows the content of that prefab in the Preview.
- To show only the content of a Page node, in the Project or Pages double-click that page.
Kanzi Studio opens the Page node in a new tab and shows the content of that Page node in the Preview.
When you isolate a Page node or a prefab in the Preview you can control that part of your application in the Preview with the timeline controls you can find in the bottom of Kanzi Studio. To show the timeline, in the Kanzi Studio main menu select > > .
The Preview shows the Page node or a prefab in your application either in playing or paused mode:
- In playing mode the Page node or a prefab functions just as it would as a standalone application: user interface components are interactive and animations are playing.
- In paused mode the animations stop, but the user interface components remain active. If components execute animations, these are not played until you enter the playing mode.
When the Preview is in paused mode, you can set the application time in the timeline bar.
You can use these playback modes in the Preview.
| Playback mode | Description |
|---|---|
|
In the continuous play mode the Preview starts playing at start time you set in the timeline bar, but does not have a set end time. |
|
In the play range mode the Preview plays in a loop the range between the start and end times you set in the timeline bar. |
|
In the play range and stop mode the Preview plays once the range between the start and end times you set in the timeline bar. |
See also
Editing your application in the Preview